<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>CreateLensFlareEffect</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CreateLensFlareEffect()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>CreateLensFlareEffect</b></font>(#Effect, CameraID, NodeID, BurstSize, HaloSize, HaloMaterialID, CircleMaterialID, BurstMaterialID)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Create a new lensflare effect for the given camera. A lensflare is always attached to a node, and will be displayed automatically 
depending of the node position relative to the camera view. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Effect</i></td>
<td width="90%"> 
The number to identify the new effect. <a href="../reference/purebasic_objects.html">#PB_Any</a> 可以用来自动生成这个编码. 

</td></tr>
<tr><td><i>CameraID</i></td>
<td> 
 
The camera to apply the lensflare. It will only affect this camera. To get a valid 'CameraID', use <a href="../camera/cameraid.html">CameraID()</a>. 

 

</td></tr>
<tr><td><i>NodeID</i></td>
<td> 
 
The parent node to handle the lensflare. To get a valid 'NodeID', use <a href="../node/nodeid.html">NodeID()</a>. 

 

</td></tr>
<tr><td><i>BurstSize</i></td>
<td> 
 
The size of the burst, in world unit. 

 

</td></tr>
<tr><td><i>HaloSize</i></td>
<td> 
 
The size of the halo, in world unit. 

 

</td></tr>
<tr><td><i>HaloMaterialID</i></td>
<td> 
 
The halo material. To get a valid material ID, use <a href="../material/materialid.html">MaterialID()</a>. 

 

</td></tr>
<tr><td><i>CircleMaterialID</i></td>
<td> 
 
The circle material. To get a valid material ID, use <a href="../material/materialid.html">MaterialID()</a>. 

 

</td></tr>
<tr><td><i>BurstMaterialID</i></td>
<td> 
 
The burst material. To get a valid material ID, use <a href="../material/materialid.html">MaterialID()</a>. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns nonzero if the lensflare effect was created successfully and zero if there was an error. 
If <font color="#924B72">#PB_Any</font> was used as the #Effect parameter then the new generated number is returned on success. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="freeeffect.html">FreeEffect()</a>, <a href="lensflareeffectcolor.html">LensFlareEffectColor()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=createcompositoreffect.html>CreateCompositorEffect()</a> - <a href="index.html">SpecialEffect Index</a> - <a href="createribboneffect.html">CreateRibbonEffect()</a> -&gt;<br><br>

</body></html>